#!/bin/bash

#RS=''
RS=' -rs 144 '
num=$1

for (( i = 0;i < $num; i++ )); do
#for i in $(seq 0 $num); do
    echo "server $i"
    j=`expr $i + 100` 
    ../network/nachos -m $j -n $num -server -d r $RS & 
    sleep 1
done

echo "over"
../network/nachos -m 1 -n $num -x ../test/testcv  -d r $RS  &
